#ifndef RESULTSREPORT_H
#define RESULTSREPORT_H

#include <QDialog>
#include "ui_resultsreport.h"
#include "helper.h"

class ResultsReport : public QDialog
{
	Q_OBJECT

public:
	ResultsReport(QWidget *parent = 0);
	~ResultsReport();

private:
	Ui::ResultsReportClass ui;
	int groupid;
	//lesson type tab
	int lessontypeid;
	void fillLessonTypeData();
	void fillLessonTypeGrades();
	void fillResultingGrades();
	void fillStudents();

	//get query for retrieveing resulting grades
	QString getResultingGradesQuery();

private slots:
	void lessonTypeChanged_0(int index);
	void lessonTypeChanged_1(int index);
	void groupChanged(int index);
	void studentSelected(const QModelIndex & index);
};

#endif // RESULTSREPORT_H
